
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script src="${pageContext.request.contextPath}/JQuery_w/external/jquery/jquery.js"></script>
        <script src="${pageContext.request.contextPath}/scripts/scriptSiaTd.js"></script>
        <script src="${pageContext.request.contextPath}/JQuery_w/jquery-ui.min.js"></script>
        <script src="${pageContext.request.contextPath}/scripts/calendario.js"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.min.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.structure.min.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/JQuery_w/jquery-ui.theme.min.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="registraDocumentoIngExt.htm" name="frm1" method="post">
            <label/>cod tipo doc ing ext<input type="text" value="${codTipDocIngExt}" name="codTipoDocIngExt"/>
            <label/>Nro tipo doc ing ext<input type="text" value="${nroTipDocIngExt}" name="nroTipDocIngExt"/>
            <label/>Nombre Doc ing Ext<select name="nomTipDocIngExt">
                <c:forEach items="${doc}" var="d">
                    <option value="${d.tipo}">${d.tipo}</option>
                </c:forEach>
            </select>
            <label/>anio<select name="codAnio">
                <c:forEach items="${anio}" var="an">
                    <option value="${an.codAnio}">${an.anio}</option>
                </c:forEach>
            </select>
            <label/>Asunto<input type="text" value="" name="asunto"/>
            <label/>Fecha<input type="text" value="" name="fecha" class="tx_fecha"/>
            <label/>Usuario Destino       <input type="text" name="usuDestDocIngExt" id="usuDni" placeholder="Dni.."/>
            <input type="text" name="apePat" placeholder="Ape Paterno.."/>
            <input type="text" name="apeMat" placeholder="Ape Materno.."/>
            <input type="text" name="preNom" placeholder="Pre Nombre.."/>
            <button type="button" onclick="ListarUsuarios();">:::</button>
            <label/>Ruta Documento<input type="file" name="rutaDocIngExt"/>
            <label/>codigo Tipo Usuario<select  name="codTipoUsuExt">
                <c:forEach items="${tipUsuExt}" var="tue">
                    <option value="${tue.codTipUsuExt}">${tue.tipo}</option>
                </c:forEach>
            </select>
            <label/>Dni usuario(TMP)<input type="text" value="${dni}" name="dniUsuario"/>
            <label/>Estado Doc<select name="codEstDocExt">
                <c:forEach items="${estDocIngExt}" var="edie">
                    <option value="${edie.codEstDocIngExt}">${edie.estado}</option>
                </c:forEach>
            </select>
            <button>Registrar</button>
        </form>
        <h2>${result}</h2>
        <%--Sirve para el div modal, lista de usuarios--%>
        <div id="ListaUsuariosModal">
            <div id="BusUsu">
                <input type="text" id="dni" placehoder="Buscar por DNI"/>
                <input type="text" id="aPat" placehoder="Ap. Paterno"/>
                <input type="text" id="aMat" placehoder="Ap. Materno"/>
                <input type="text" id="pNom" placehoder="PreNombre"/>
            </div>
            <div id="ListaUsuarios">
            </div>
        </div>
    </body>
</html>
